<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/global/register" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.registerConfig}</h1>
    </div>
    <div class="form">
      <form method="post" action="{:URL('admin/Global/doSetRegisterOpt')}" enctype="multipart/form-data">

        <dl class="kv">
          <dt>
            <label>{$Think.lang.registerType}：</label>
          </dt>
          <!-- 注册方式 -->
          <dd>
            <label>
              <input name="register_type" id="register_type" type="radio" value="closed" <eq name="register_type" value="closed">checked</eq>>{$Think.lang.registerClose}</label>
            <!-- 关闭注册 -->
            <label>
              <input name="register_type" id="register_type" type="radio" value="invite" <eq name="register_type" value="invite">checked</eq>>{$Think.lang.registerInvite}</label>
            <!-- 邀请注册 -->
            <label>
              <input name="register_type" id="register_type" type="radio" value="open" <eq name="register_type" value="open">checked</eq>>{$Think.lang.registerOpen}</label>
            <!-- 公开注册 -->
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.inviteType}：</label>
          </dt>
          <!-- 邀请方式 -->
          <dd>
            <label>
              <input name="invite_set" type="radio" value="close" <eq name="invite_set" value="close">checked</eq>>{$Think.lang.inviteClose}</label>
            <!-- 关闭邀请 -->
            <label>
              <input name="invite_set" type="radio" value="invitecode" <eq name="invite_set" value="invitecode">checked</eq>>{$Think.lang.useInviteNo}</label>
            <!-- 使用邀请码 -->
            <label>
              <input name="invite_set" type="radio" value="common" <eq name="invite_set" value="common">checked</eq>>{$Think.lang.inviteTypically}</label>

            <p class="tip">{$Think.lang.inviteTypeRemark}</p>
          </dd>
          <!-- 当“注册方式”为“邀请注册”时有效 -->
        </dl>
        <div id="regInvite" style="1display:none">
          <dl class="kv">
            <dt>&nbsp;</dt>
            <dd>
              <input class="input-text" name="send_type_user" type="text" value="" onkeydown="KeyCodeOnlyNumberCom();">
              <p class="tip">{$Think.lang.sendTypeUserRemark}</p>
            </dd>
          </dl>
          <dl class="kv">
            <dt>
              <label>{$Think.lang.sendNum}：</label>
            </dt>
            <dd>
              <input type="number" value="" class="input-text" name="send_type_num">{$Think.lang.sendNumUnit}</dd>
            <div class="kv-error"></div>
          </dl>
        </div>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.emailActivate}：</label>
          </dt>
          <!-- 注册后需要邮件激活 -->
          <dd>
            <label>
              <input name="register_email_activate" type="radio" value="0" <eq name="register_email_activate" value="0">checked</eq>>{$Think.lang.no}
            </label>
            <label>
              <input name="register_email_activate" type="radio" value="1" <eq name="register_email_activate" value="1">checked</eq>>{$Think.lang.yes}
            </label>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.autoFriend}：</label>
          </dt>
          <!-- 默认关注用户-->
          <dd>
            <input type="number" min="0" class="input-text" name="register_auto_friend" value="{$register_auto_friend}">
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            {$Think.lang.passwordLen}：
            <!-- 密码的最小长度 -->
          </dt>
          <dd>
            <input type="number" min="0" max="15" class="input-text" name="password_length" value="{$password_length}" onkeydown="KeyCodeOnlyNumber();">

            <p class="tip">{$Think.lang.passwordLenRemark}</p>
          </dd>
          <!-- 新用户注册时密码最小长度，0或不填为不限制 -->
        </dl>
        <dl class="kv">
          <dt>
            {$Think.lang.passwordRule}：
            <!-- 强制密码复杂度 -->
          </dt>
          <dd>
            <input name="password_rule_num_chk" type="checkbox" <eq name="password_rule_num" value="Y">checked</eq>
            onclick="clickCheckbox(this,'password_rule_num');">{$Think.lang.number}
            <!-- 数字 -->
            <input name="password_rule_lower_chk" type="checkbox" <eq name="password_rule_lower" value="Y">checked</eq>
            onclick="clickCheckbox(this,'password_rule_lower');">{$Think.lang.lowerCase}
            <!-- 小写字母 -->
            <input name="password_rule_upper_chk" type="checkbox" <eq name="password_rule_upper" value="Y">checked</eq>
            onclick="clickCheckbox(this,'password_rule_upper');">{$Think.lang.upperCase}
            <!-- 大写字母 -->
            <input name="password_rule_symbols_chk" type="checkbox" <eq name="password_rule_symbols" value="Y">checked</eq>
            onclick="clickCheckbox(this,'password_rule_symbols');">{$Think.lang.symbol}
            <!-- 符号 -->
            <input type="text" name="password_rule_num" id="password_rule_num" value="{$password_rule_num}" style="display: none;" />
            <input type="text" name="password_rule_lower" id="password_rule_lower" value="{$password_rule_lower}" style="display: none;" />
            <input type="text" name="password_rule_upper" id="password_rule_upper" value="{$password_rule_upper}" style="display: none;" />
            <input type="text" name="password_rule_symbols" id="password_rule_symbols" value="{$password_rule_symbols}" style="display: none;" />
            <p class="tip">{$Think.lang.passwordRuleRemark}</p>
          </dd>
          <!-- 新用户注册时密码中必须存在所选字符类型，不选则为无限制 -->
        </dl>
        <dl class="kv">
          <dt>
            {$Think.lang.newUsrVerify}：
            <!-- 新用户注册验证 -->
          </dt>
          <dd>
            <label>
              <input name="register_new_verify" type="radio" value="email" <eq name="register_new_verify" value="email">checked</eq>
              >{$Think.lang.emailVerify}</label>
            <!-- Email 验证 -->
            <label>
              <input name="register_new_verify" type="radio" value="manual" <eq name="register_new_verify" value="manual">checked</eq>
              >{$Think.lang.artificialVerify}</label>
            <!-- 人工审核 -->
            <!--
            <label><input name="register_new_verify" type="radio" value="sms"
            <eq name="register_new_verify" value="sms">checked</eq>
            >{$Think.lang.msmVerify}</label>
             -->
            <!-- 手机短信验证 -->
            <p class="tip">{$Think.lang.newUsrVerifyRemark}</p>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            {$Think.lang.sendWelcomeMsg}：
            <!-- 发送欢迎信息 -->
          </dt>
          <dd>
            <!--
            <input name="send_welcome_msg_chk" type="checkbox"
            <eq name="send_welcome_msg" value="Y">checked</eq>
            onclick="clickCheckbox(this,'send_welcome_msg');">{$Think.lang.sendWelcomeMsg}
             -->
            <!-- 发送欢迎信息 -->
            <input name="send_welcome_email_chk" type="checkbox" <eq name="send_welcome_email" value="Y">checked</eq>
            onclick="clickCheckbox(this,'send_welcome_email');">{$Think.lang.sendWelcomeEmail}
            <!-- 发送欢迎 Email -->
            <input type="text" name="send_welcome_msg" id="send_welcome_msg" value="{$send_welcome_msg}" style="display: none;" />
            <input type="text" name="send_welcome_email" id="send_welcome_email" value="{$send_welcome_email}" style="display: none;" />

            <p class="tip">{$Think.lang.sendWelcomeRemark}</p>
          </dd>
          <!-- 可选择是否自动向新注册用户发送一条欢迎信息 -->
        </dl>
        <dl class="kv">
          <dt>
            {$Think.lang.welcomeMsgTitle}：
            <!-- 欢迎信息标题 -->
          </dt>
          <dd>
            <input class="input-text" name="settingnew[welcomemsgtitle]" type="text" value="{$settingnew[welcomemsgtitle]}">
            <p class="tip">{$Think.lang.welcomeMsgTitleRemark}</p>
            <!-- 系统发送的欢迎信息的标题，不支持 HTML，不超过 75 字节。 -->
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            {$Think.lang.welcomeMsgNote}：
            <!-- 欢迎信息内容 -->
          </dt>
          <dd>
            <textarea name="settingnew[welcomemsgtxt]" id="settingnew[welcomemsgtxt]" rows="10" cols="80">{$settingnew[welcomemsgtxt]}</textarea>
            <p class="tip">{$Think.lang.welcomeMsgNoteRemrak}</p>
          </dd>
          <!-- 系统发送的欢迎信息的内容。标题内容均支持变量替换，可以使用如下变量:{username} : 用户名{time} : 发送时间{sitename} : 网站名称（显示在页面底部的联系方式处的名称）
                {bbname} : 站点名称（显示在浏览器窗口标题等位置的名称）{adminemail} : 管理员 Email双击输入框可扩大/缩小 -->
        </dl>
        <dl class="kv">
          <dt>
            {$Think.lang.showTiaokuan}：
            <!-- 显示网站服务条款 -->
          </dt>
          <dd>
            <label>
              <input name="tiaokuan" type="radio" value="1" <eq name="tiaokuan" value="1">checked</eq>
              onclick="showTiaokuan(1);">{$Think.lang.yes}</label>
            <label>
              <input name="tiaokuan" type="radio" value="0" <eq name="tiaokuan" value="0">checked</eq>
              onclick="showTiaokuan(0);">{$Think.lang.no}</label>
            <br/>
            <p class="tip">{$Think.lang.showTiaokuanRemark}</p>
            <!-- 新用户注册时显示网站服务条款 -->
          </dd>
        </dl>
        <div id="tbShow">
          <dl class="kv">
            <dt>
              {$Think.lang.forcedShow}：
              <!-- 是否强制显示网站服务条款 -->
            </dt>
            <dd>
              <label>
                <input name="shoutiao" type="radio" value="1" <eq name="shoutiao" value="1">checked</eq>
                >{$Think.lang.yes}</label>
              <label>
                <input name="shoutiao" type="radio" value="0" <eq name="shoutiao" value="0">checked</eq>
                >{$Think.lang.no}</label>
              <br/>
              <p class="tip">{$Think.lang.forcedShowRemark}</p>
              <!-- 选择是则在用户注册时，首先将看到网站服务条款全文，必须同意才可以继续注册 -->
            </dd>
          </dl>
          <dl class="kv">
            <dt>{$Think.lang.serviceContent}：</dt>
            <!-- 服务条款内容 -->
            <dd>
              <textarea name="settingnew[bbrulestxt]" id="content" style="width: 650px; height: 200px">{$settingnew[bbrulestxt]}</textarea>
              <p class="tip">{$Think.lang.serviceContentRemark}</p>
            </dd>
            <!-- 网站服务条款的详细内容 -->
          </dl>
        </div>
        <div class="actions">
          <input class="btn btn-y" type="submit" name="" value="{$Think.lang.OK}" />
        </div>
      </form>
    </div>
  </div>
</body>

</html>
